//
//  NSDate+Extend.h
//  Test
//
//  Created by lizq on 15/11/20.
//  Copyright © 2015年 lizq. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface NSDate (Extend)
//获取年月日时分
- (NSInteger)year;
- (NSInteger)month;
- (NSInteger)weekDay;
- (NSInteger)day;
- (NSInteger)hour;
- (NSInteger)minute;
- (NSInteger)second;

- (BOOL)isTady;
- (BOOL)isSameDay:(NSDate *)date;

/*
 *@formater : @"yyyy-MM-dd HH:mm:ss.SSS"  etc.
 */
- (NSString *)dateWithFormater:(NSString *)formater;

/*
 *  timestamp 秒 10位
 */
- (NSString *)secondTimestamp;

/*
 * timestamp 毫秒 13位
 */
- (NSString *)millSecondTimestamp;
@end
